﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BLL
{
    public class OpenLabStatusManage
    {
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public static bool Exists(int OpenLabID, DateTime date)
        {
            return DAL.OpenLabStatusService.Exists(OpenLabID, date);
        }
        /// <summary>
        /// 根据主键LabID,日期查询一条信息
        /// </summary>
        /// <param name="OpenLabID"></param>
        /// <param name="date"></param>
        /// <returns></returns>
        public static Model.OpenLabStatus SelectOneByPrimaryKey(int OpenLabID, DateTime date)
        {
            return DAL.OpenLabStatusService.SelectOneByPrimaryKey(OpenLabID, date);
        }
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public static bool Add(Model.OpenLabStatus model)
        {
            return DAL.OpenLabStatusService.Add(model);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public static bool Update(Model.OpenLabStatus model)
        {
            return DAL.OpenLabStatusService.Update(model);
        }
    }
}
